

const initialState={
  name:'ys'
}

function reducer (state = initialState,action){
  switch(action.type){
    case "homeType":
    return { ...state, name: action.name }


    default:
      return state;
  }
}

export default reducer